//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.acorn.community.common.exception;

public enum CodeMsg implements ICodeMsg<Integer> {
    SUCCESS(200, "操作成功"),
    ERROR(500, "后台服务异常"),
    FALLBACK(200001, "进入容错方法"),
    DATA_NOT_FOUND(200002, "数据未找到"),
    DATA_REPEAT(200003, "数据已存在"),
    SAVE_FAIL(200004, "保存失败"),
    UPDATE_FAIL(200005, "修改失败"),
    DELETE_FAIL(200006, "删除失败"),
    ORDER_ENDED(200007, "订单已结束"),
    FINISH_FAIL(200020, "结单失败"),
    DATA_NULL_FAIL(300001, "check is Illegal Argument!"),
    PARAM_EMPTY(300002, "参数格式有误"),
    DATA_EMPTY_ARRAY_LIST(400001, "查询结果为空");

    private Integer code;
    private String message;

    private CodeMsg(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private CodeMsg(Integer code) {
        this.code = code;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
